package com.dormitory.management.system.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 遗失物品表
 * </p>
 *
 * @author
 * @since 2021-12-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Loss对象", description="遗失物品表")
public class Loss implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "遗失物品id")
    @TableId(value = "id", type = IdType.NONE)
    private Long id;

    @ApiModelProperty(value = "用户账号（宿管：身份证，学生：学号）")
    private String userId;

    @ApiModelProperty(value = "详情描述")
    private String information;

    @ApiModelProperty(value = "主题描述")
    private String theme;

    @ApiModelProperty(value = "创建日期")
    private Date gmtCreate;

    @ApiModelProperty(value = "结束日期")
    private Date gmtEnd;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "状态（0：正常，1：禁用）")
    @TableLogic
    private Integer statusId;

    @ApiModelProperty(value = "遗失状态（0：寻找中，1：已找到，2：待认领，3：已认领）")
    private Integer status;

    @ApiModelProperty(value = "对应的角色id")
    private Long roleId;

    @ApiModelProperty(value = "图片url")
    private String pictureUrl;
}
